home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Life 1997 February
/
Computer Life February 1997.iso
/
TELME
/
COMMS
/
FPCMCIA.SRP
< prev
next >
Wrap
Text File
|
1996-06-04
|
2KB
|
108 lines
rem Copyright (c) PhoneLink plc
rem PCMCIA Fast Connect Modem (10/8/95)
label InitDevice
echo off
label OffToGate
rem Offline to Gate (also contains Pad to Gate)
echo off
rem Initialisation string
rem send "at&f&c1&d2%f3s15=120s24=0s25=15char(13)"
echo script[57]
send "at{InitModemStr}char(13)"
timeout 5,modem_fail
find "OK"
send "atdt{PreTel}{SiteTel}{PostFix}char(13)"
echo script[52]..
timeout {DialTimeout},connect_fail
finderr 0,BUSY,busy
finderr 103,NO DIALTONE,connect_fail
finderr 0,NO CARRIER,no_carrier
find "PAD>"
label PadToGate
echo script[53]
echo off
send "SER{SUB}char(13)"
timeout 3,nua_bad1
finderr 0,COM,nua_good
find "ZZZ"
label nua_bad1
echo script[58]
send "SER{SUB}char(13)"
timeout 3,nua_bad2
finderr 0,COM,nua_good
find "ZZZ"
label nua_bad2
echo script[58]
send "SER{SUB}char(13)"
timeout 3,nua_fail
find "COM"
label nua_good
echo script[54].
mwait 500
end
label GateToPad
echo off
echo script[92]
send "char(16)CLRchar(13)"
timeout 5,ctrl_p_clear_fail
find "CONF"
echo script[91]..
end
label GateToOff
rem Gate To Offline (also contains Pad to Offline)
echo off
echo script[92]
send "char(16)CLRchar(13)"
timeout 5,ctrl_p_clear_fail
find "CONF"
label PadToOff
echo off
echo script[92]
send "char(31)char(31)char(31)char(31)"
wait 1
dtrtoggle
echo script[99].
mwait 250
send "at&fchar(13)"
end
label modem_offline
echo script[92]
send "char(31)char(31)char(31)char(31)"
wait 1
dtrtoggle
label modem_reset
mwait 250
send "at&fchar(13)"
abort
label modem_fail
echo script[23]
goto modem_offline
label connect_fail
echo script[1]
goto modem_offline
label busy
echo script[2]
goto modem_offline
label no_carrier
echo script[3]
goto modem_offline
label nua_fail
echo script[22]
goto modem_offline
label ctrl_p_clear_fail
echo script[14]
goto modem_offline